<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="description" content="">
    <meta name="keyword" content="">
    <title>修改密码</title>
    <link rel="stylesheet" href="/Public/Home/css/common.css">
    <link rel="stylesheet" href="/Public/Home/css/index.css">
    <link rel="stylesheet" href="/Public/Home/css/L-index.css">
    <script src="/Public/Home/js/jquery-1.12.4.min.js"></script>

</head>
<body>
<!--引入头部 star-->
<!-- header start -->
<include file="Public/header" />
<!-- header end -->
<!--end-->
    <div class="cont clearfix">
        <!--引入左边 star-->
        <include file="Public/center_left" />
        <!--end-->
        <div class="right">
            <div class="xgmm">
                <input type="password" id="old_password" value="" placeholder="请输入旧密码" class="input">
                <input type="password" id="new_password" value="" placeholder="设置新密码" class="input">
                <input type="password" id="re_password" value="" placeholder="确认新密码" class="input">
                <button class="sure_modify">确认修改</button>
            </div>
        </div>
    </div>

<!-- footer start -->
<include file="Public/footer" />
<!-- footer end -->
</body>
<script src="/Public/Home/js/jquery-1.12.4.min.js"></script>
<script>
    $('.sure_modify').click(function(){
        console.log(111);
        var old_password = $('#old_password').val();
        var new_password = $('#new_password').val();
        var re_password = $('#re_password').val();
        $.post("{:U('Home/center/modifypsw')}",{
            old_password:old_password,
            new_password:new_password,
            re_password:re_password
        },function(res){
            console.log(res);
            // if(res.err == 0){
            //     window.location.href="{:U('Home/Login/login')}"
            // }
        },'json')
    });
</script>
</html>